package com.wtwd.device.constant;

/**
 * 应答状态
 */
public enum AnswerStateEnum {

    NORMAL(0, "正常"), ABNORMAL(1, "异常");

    private int state;

    private String msg;

    AnswerStateEnum(int state, String msg) {
        this.state = state;
        this.msg = msg;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "AnswerStateEnum{" +
                "state=" + state +
                ", msg=" + msg +
                '}';
    }
}
